package com.zkw.demo.introspector;

/**
 * Created by Administrator on 2016/4/6.
 */
public class MainTest {
    public static void main(String[] args) {
        UserInfo userInfo = new UserInfo();
        userInfo.setUserName("peida");
        try {
            BeanInfoUtil.getProperty(userInfo,"userName");
            BeanInfoUtil.setProperty(userInfo, "userName");
            BeanInfoUtil.getPropertyByIntrospector(userInfo,"userName");
            BeanInfoUtil.setPropertyByIntrospector(userInfo, "userName");
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}
